package arconplugin.handlers;

import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.PlatformUI;

public class ArConBaseHandler extends AbstractHandler {
	
	private ResultVisualizer visualizer = new ResultVisualizer();
	
	protected void debugPrint(String output) {
		visualizer.debugPrint(output);
    }
    protected void doPrint(String output) {
    	visualizer.doPrint(output);
    }
	protected void printError(String error) {
		visualizer.printError(error);
    }
	
	protected Shell getShell() {
		return PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
	}
	@Override
	public Object execute(ExecutionEvent event) throws ExecutionException {
		// TODO Auto-generated method stub
		return null;
	}

}
